<template>
    <div class="header">
        <div class="header-left">
          <span class="iconfont">&#xe624;</span>
        </div>
        <div class="header-input">
          <span class="iconfont">&#xe632;</span>
        输入城市景点游玩主题</div>
        <router-link to="/city">
        <div class="header-right">
        {{ this.city}}
          <span class="iconfont">&#xe62d;</span>
        </div>
        </router-link>
    </div>
</template>

<script>
import { mapState, mapGetters } from 'vuex'
export default {
  name: 'HomeHeader',
  computed: {
    ...mapState(['city']),
    ...mapGetters(['doubleCity'])
  }
}
</script>

<style lang="stylus" scoped>
  @import '~styles/varibles.styl'
  .header
    display: flex
    background: $bgcolor
    color: #fff
    height: $headerHeight
    line-height: $headerHeight
    .header-left
      width: .64rem
      float: left
    .header-input
      flex: 1
      border-radius: .1rem
      margin: .12rem .2rem
      height: .64rem
      background: #fff
      color: #ccc
      line-height: .64rem
    .header-right
      width: .1.24rem
      float: right
      text-align: center
      margin-right: .12rem
      color: #fff

</style>
